<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('个人信息营销人员建档拜访情况列表')"/>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <form class="form-horizontal" id="formIdPeasantUserFiling">
        <input name="perType" type="hidden" value="1"/>
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <h3 style="margin-bottom: 5px; color: red; text-align: center">营销人员农户建档排名</h3>
                <form>
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>机构名称：</label>
                                <input name="deptId" type="hidden" id="treeIdPeasantUserFiling"/>
                                <input name="deptName" onclick="selectPeasantDeptTreeUserFiling()" id="treeNamePeasantUserFiling" type="text"
                                       placeholder="请选择归属机构" autocomplete="off">
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="searchPeasantUserFiling()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPeasantUserFiling()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="btn-group-sm" id="toolbarPeasantUserFiling" role="group">
                <a class="btn btn-warning" onclick="exportExcelPeasantUserFiling()"
                   shiro:hasPermission="merchant:branchEntFilingVisits:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table-peasantUserFiling"></table>
            </div>
        </div>
    </form>
    <form class="form-horizontal" id="formIdCitizenUserFiling">
        <input name="perType" type="hidden" value="2"/>
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <h3 style="margin-bottom: 5px; color: red; text-align: center">营销人员新市民建档排名</h3>
                <form>
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>机构名称：</label>
                                <input name="deptId" type="hidden" id="treeIdCitizenUserFiling"/>
                                <input name="deptName" onclick="selectCitizenDeptTreeUserFiling()" id="treeNameCitizenUserFiling" type="text"
                                       placeholder="请选择归属机构" autocomplete="off">
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="searchCitizenUserFiling()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="resetCitizenUserFiling()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="btn-group-sm" id="toolbarCitizenUserFiling" role="group">
                <a class="btn btn-warning" onclick="exportExcelCitizenUserFiling()"
                   shiro:hasPermission="merchant:branchEntFilingVisits:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table-citizenUserFiling"></table>
            </div>
        </div>
    </form>
    <form class="form-horizontal" id="formIdPeasantUserVisits">
        <input name="perType" type="hidden" value="1"/>
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <h3 style="margin-bottom: 5px; color: red; text-align: center">营销人员农户拜访次数排名</h3>
                <form>
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>机构名称：</label>
                                <input name="deptId" type="hidden" id="treeIdPeasantUserVisits"/>
                                <input name="deptName" onclick="selectPeasantDeptTreeUserVisits()" id="treeNamePeasantUserVisits" type="text"
                                       placeholder="请选择归属机构" autocomplete="off">
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="searchPeasantUserVisits()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPeasantUserVisits()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="btn-group-sm" id="toolbarPeasantUserVisits" role="group">
                <a class="btn btn-warning" onclick="exportExcelPeasantUserVisits()"
                   shiro:hasPermission="merchant:branchEntFilingVisits:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table-peasantUserVisits"></table>
            </div>
        </div>
    </form>
    <form class="form-horizontal" id="formIdCitizenUserVisits">
        <input name="perType" type="hidden" value="2"/>
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <h3 style="margin-bottom: 5px; color: red; text-align: center">营销人员新市民拜访次数排名</h3>
                <form>
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>机构名称：</label>
                                <input name="deptId" type="hidden" id="treeIdCitizenUserVisits"/>
                                <input name="deptName" onclick="selectCitizenDeptTreeUserVisits()" id="treeNameCitizenUserVisits" type="text"
                                       placeholder="请选择归属机构" autocomplete="off">
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="searchCitizenUserVisits()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="resetCitizenUserVisits()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="btn-group-sm" id="toolbarCitizenUserVisits" role="group">
                <a class="btn btn-warning" onclick="exportExcelCitizenUserVisits()"
                   shiro:hasPermission="merchant:branchEntFilingVisits:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table-citizenUserVisits"></table>
            </div>
        </div>
    </form>
    <form class="form-horizontal" id="formIdPeasantUserDoTask">
        <input name="perType" type="hidden" value="1"/>
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <h3 style="margin-bottom: 5px; color: red; text-align: center">营销人员农户超时拜访次数排名</h3>
                <form>
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>机构名称：</label>
                                <input name="deptId" type="hidden" id="treeIdPeasantUserDoTask"/>
                                <input name="deptName" onclick="selectPeasantDeptTreeUserDoTask()" id="treeNamePeasantUserDoTask" type="text"
                                       placeholder="请选择归属机构" autocomplete="off">
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="searchPeasantUserDoTask()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPeasantUserDoTask()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="btn-group-sm" id="toolbarPeasantUserDoTask" role="group">
                <a class="btn btn-warning" onclick="exportExcelPeasantUserDoTask()"
                   shiro:hasPermission="merchant:branchEntFilingVisits:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table-peasantUserDoTask"></table>
            </div>
        </div>
    </form>
    <form class="form-horizontal" id="formIdCitizenUserDoTask">
        <input name="perType" type="hidden" value="2"/>
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <h3 style="margin-bottom: 5px; color: red; text-align: center">营销人员新市民超时拜访次数排名</h3>
                <form>
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>机构名称：</label>
                                <input name="deptId" type="hidden" id="treeIdCitizenUserDoTask"/>
                                <input name="deptName" onclick="selectCitizenDeptTreeUserDoTask()" id="treeNameCitizenUserDoTask" type="text"
                                       placeholder="请选择归属机构" autocomplete="off">
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="searchCitizenUserDoTask()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="resetCitizenUserDoTask()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="btn-group-sm" id="toolbarCitizenUserDoTask" role="group">
                <a class="btn btn-warning" onclick="exportExcelCitizenUserDoTask()"
                   shiro:hasPermission="merchant:branchEntFilingVisits:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table-citizenUserDoTask"></table>
            </div>
        </div>
    </form>
    <form class="form-horizontal" id="formIdPeasantUserUndoTask">
        <input name="perType" type="hidden" value="1"/>
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <h3 style="margin-bottom: 5px; color: red; text-align: center">营销人员农户超时未拜访次数排名</h3>
                <form>
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>机构名称：</label>
                                <input name="deptId" type="hidden" id="treeIdPeasantUserUndoTask"/>
                                <input name="deptName" onclick="selectPeasantDeptTreeUserUndoTask()" id="treeNamePeasantUserUndoTask" type="text"
                                       placeholder="请选择归属机构" autocomplete="off">
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="searchPeasantUserUndoTask()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="resetPeasantUserUndoTask()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="btn-group-sm" id="toolbarPeasantUserUndoTask" role="group">
                <a class="btn btn-warning" onclick="exportExcelPeasantUserUndoTask()"
                   shiro:hasPermission="merchant:branchEntFilingVisits:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table-peasantUserUndoTask"></table>
            </div>
        </div>
    </form>
    <form class="form-horizontal" id="formIdCitizenUserUndoTask">
        <input name="perType" type="hidden" value="2"/>
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <h3 style="margin-bottom: 5px; color: red; text-align: center">营销人员新市民超时未拜访次数排名</h3>
                <form>
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>机构名称：</label>
                                <input name="deptId" type="hidden" id="treeIdCitizenUserUndoTask"/>
                                <input name="deptName" onclick="selectCitizenDeptTreeUserUndoTask()" id="treeNameCitizenUserUndoTask" type="text"
                                       placeholder="请选择归属机构" autocomplete="off">
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="searchCitizenUserUndoTask()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="resetCitizenUserUndoTask()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="btn-group-sm" id="toolbarCitizenUserUndoTask" role="group">
                <a class="btn btn-warning" onclick="exportExcelCitizenUserUndoTask()"
                   shiro:hasPermission="merchant:branchEntFilingVisits:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table-citizenUserUndoTask"></table>
            </div>
        </div>
    </form>
</div>

<th:block th:include="include :: footer"/>
<script type="text/javascript">
    var prefix = ctx + "merchant/personChart";

    $(function () {
        /*营销人员农户建档排名*/
        var userPeasantFilingOptions = {
            id: 'bootstrap-table-peasantUserFiling',
            toolbar: 'toolbarPeasantUserFiling',
            formId: 'formIdPeasantUserFiling',
            url: prefix + "/getPerUserFilingList",
            exportUrl: prefix + "/exportPerUserFilingList",
            modalName: "营销人员农户建档排名",
            columns: [
                {
                    field: 'userName',
                    title: '客户经理'
                },
                {
                    field: 'rank',
                    title: '农户建档排名',
                    align: "center",
                },
                {
                    field: 'merchantNum',
                    title: '农户建档数',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'merchantLastMonthNum',
                    title: '上月新增',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'merchantThisMonthNum',
                    title: '本月新增',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'merchantCompareNum',
                    title: '较上月对比',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'deptName',
                    title: '机构名称'
                }]
        };
        $.table.init(userPeasantFilingOptions);
        /*营销人员新市民建档排名*/
        var userCitizenFilingOptions = {
            id: 'bootstrap-table-citizenUserFiling',
            toolbar: 'toolbarCitizenUserFiling',
            formId: 'formIdCitizenUserFiling',
            url: prefix + "/getPerUserFilingList",
            exportUrl: prefix + "/exportPerUserFilingList",
            modalName: "营销人员新市民建档排名",
            columns: [
                {
                    field: 'userName',
                    title: '客户经理'
                },
                {
                    field: 'rank',
                    title: '新市民建档排名',
                    align: "center",
                },
                {
                    field: 'merchantNum',
                    title: '新市民建档数',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'merchantLastMonthNum',
                    title: '上月新增',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'merchantThisMonthNum',
                    title: '本月新增',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'merchantCompareNum',
                    title: '较上月对比',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'deptName',
                    title: '机构名称'
                }]
        };
        $.table.init(userCitizenFilingOptions);
        /*营销人员农户拜访次数排名*/
        var userPeasantVisitsOptions = {
            id: 'bootstrap-table-peasantUserVisits',
            toolbar: 'toolbarPeasantUserVisits',
            formId: 'formIdPeasantUserVisits',
            url: prefix + "/getPerUserVisitsList",
            exportUrl: prefix + "/exportPerUserVisitsList",
            modalName: "营销人员农户拜访次数排名",
            columns: [
                {
                    field: 'userName',
                    title: '客户经理'
                },
                {
                    field: 'rank',
                    title: '农户拜访排名',
                    align: "center",
                },
                {
                    field: 'visitNum',
                    title: '农户拜访次数',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'visitLastMouthNum',
                    title: '上月新增',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'visitThisMouthNum',
                    title: '本月新增',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'visitCompareNum',
                    title: '较上月对比',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'deptName',
                    title: '机构名称'
                }]
        };
        $.table.init(userPeasantVisitsOptions);
        /*营销人员新市民拜访次数排名*/
        var userCitizenVisitsOptions = {
            id: 'bootstrap-table-citizenUserVisits',
            toolbar: 'toolbarCitizenUserVisits',
            formId: 'formIdCitizenUserVisits',
            url: prefix + "/getPerUserVisitsList",
            exportUrl: prefix + "/exportPerUserVisitsList",
            modalName: "营销人员新市民拜访次数排名",
            columns: [
                {
                    field: 'userName',
                    title: '客户经理'
                },
                {
                    field: 'rank',
                    title: '新市民拜访排名',
                    align: "center",
                },
                {
                    field: 'visitNum',
                    title: '新市民拜访次数',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'visitLastMouthNum',
                    title: '上月新增',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'visitThisMouthNum',
                    title: '本月新增',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'visitCompareNum',
                    title: '较上月对比',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'deptName',
                    title: '机构名称'
                }]
        };
        $.table.init(userCitizenVisitsOptions);
        /*营销人员农户超时拜访次数排名*/
        var userPeasantDoTaskOptions = {
            id: 'bootstrap-table-peasantUserDoTask',
            toolbar: 'toolbarPeasantUserDoTask',
            formId: 'formIdPeasantUserDoTask',
            url: prefix + "/getPerUserDoTaskList",
            exportUrl: prefix + "/exportPerUserDoTaskList",
            modalName: "营销人员农户超时拜访次数排名",
            columns: [
                {
                    field: 'userName',
                    title: '客户经理'
                },
                {
                    field: 'rank',
                    title: '农户超时拜访排名',
                    align: "center",
                },
                {
                    field: 'doTaskSum',
                    title: '农户超时拜访数',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'percentageDoTask',
                    title: '农户超时拜访率',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value) + '%';
                    }
                },
                {
                    field: 'rankPercentage',
                    title: '超时拜访率排名',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'deptName',
                    title: '机构名称'
                }]
        };
        $.table.init(userPeasantDoTaskOptions);
        /*营销人员新市民超时拜访次数排名*/
        var userCitizenDoTaskOptions = {
            id: 'bootstrap-table-citizenUserDoTask',
            toolbar: 'toolbarCitizenUserDoTask',
            formId: 'formIdCitizenUserDoTask',
            url: prefix + "/getPerUserDoTaskList",
            exportUrl: prefix + "/exportPerUserDoTaskList",
            modalName: "营销人员新市民超时拜访次数排名",
            columns: [
                {
                    field: 'userName',
                    title: '客户经理'
                },
                {
                    field: 'rank',
                    title: '新市民超时拜访排名',
                    align: "center",
                },
                {
                    field: 'doTaskSum',
                    title: '新市民超时拜访数',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'percentageDoTask',
                    title: '新市民超时拜访率',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value) + '%';
                    }
                },
                {
                    field: 'rankPercentage',
                    title: '超时拜访率排名',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'deptName',
                    title: '机构名称'
                }]
        };
        $.table.init(userCitizenDoTaskOptions);
        /*营销人员农户超时未拜访次数排名*/
        var userPeasantUndoTaskOptions = {
            id: 'bootstrap-table-peasantUserUndoTask',
            toolbar: 'toolbarPeasantUserUndoTask',
            formId: 'formIdPeasantUserUndoTask',
            url: prefix + "/getPerUserUnDoTaskList",
            exportUrl: prefix + "/exportPerUserUnDoTaskList",
            modalName: "营销人员农户超时未拜访次数排名",
            columns: [
                {
                    field: 'userName',
                    title: '客户经理'
                },
                {
                    field: 'rank',
                    title: '农户超时未拜访排名',
                    align: "center",
                },
                {
                    field: 'undoTaskSum',
                    title: '农户超时未拜访数量',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'percentageUndoTask',
                    title: '农户超时拜访率',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value) + '%';
                    }
                },
                {
                    field: 'rankPercentage',
                    title: '超时拜访率排名',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'deptName',
                    title: '机构名称'
                }]
        };
        $.table.init(userPeasantUndoTaskOptions);
        /*营销人员新市民超时未拜访次数排名*/
        var userCitizenUndoTaskOptions = {
            id: 'bootstrap-table-citizenUserUndoTask',
            toolbar: 'toolbarCitizenUserUndoTask',
            formId: 'formIdCitizenUserUndoTask',
            url: prefix + "/getPerUserUnDoTaskList",
            exportUrl: prefix + "/exportPerUserUnDoTaskList",
            modalName: "营销人员新市民超时未拜访次数排名",
            columns: [
                {
                    field: 'userName',
                    title: '客户经理'
                },
                {
                    field: 'rank',
                    title: '新市民超时未拜访排名',
                    align: "center",
                },
                {
                    field: 'undoTaskSum',
                    title: '新市民超时未拜访数量',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'percentageUndoTask',
                    title: '新市民超时拜访率',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value) + '%';
                    }
                },
                {
                    field: 'rankPercentage',
                    title: '超时拜访率排名',
                    sortable: true,
                    formatter: function (value, row, index) {
                        return $.table.formatNumber(value);
                    }
                },
                {
                    field: 'deptName',
                    title: '机构名称'
                }]
        };
        $.table.init(userCitizenUndoTaskOptions);
    })

    /*营销人员农户建档排名相关处理开始*/
    function searchPeasantUserFiling() {
        table.set('bootstrap-table-peasantUserFiling');
        $.table.search('formIdPeasantUserFiling');
    }

    /* 选择机构树 */
    function selectPeasantDeptTreeUserFiling() {
        var treeIdPeasantUserFiling = $("#treeIdPeasantUserFiling").val();
        var deptId = $.common.isEmpty(treeIdPeasantUserFiling) ? "100" : $("#treeIdPeasantUserFiling").val();
        var url = ctx + "system/dept/selectDeptTree/" + deptId;
        var options = {
            title: '选择部门',
            width: "380",
            url: url,
            callBack: doSubmitPeasantUserFiling
        };
        $.modal.openOptions(options);
    }
    function doSubmitPeasantUserFiling(index, layero) {
        var body = $.modal.getChildFrame(index);
        $("#treeIdPeasantUserFiling").val(body.find('#treeId').val());
        $("#treeNamePeasantUserFiling").val(body.find('#treeName').val());
        $.modal.close(index);
    }
    function exportExcelPeasantUserFiling() {
        table.set('bootstrap-table-peasantUserFiling');
        $.table.exportExcel('formIdPeasantUserFiling');
    }
    function resetPeasantUserFiling() {
        table.set('bootstrap-table-peasantUserFiling');
        $('#treeIdPeasantUserFiling').val('')
        $.form.reset('formIdPeasantUserFiling');
    }
    /*营销人员农户建档排名相关处理结束*/

    /*营销人员新市民建档排名相关处理开始*/
    function searchCitizenUserFiling() {
        table.set('bootstrap-table-citizenUserFiling');
        $.table.search('formIdCitizenUserFiling');
    }

    /* 选择机构树 */
    function selectCitizenDeptTreeUserFiling() {
        var treeIdCitizenUserFiling = $("#treeIdCitizenUserFiling").val();
        var deptId = $.common.isEmpty(treeIdCitizenUserFiling) ? "100" : $("#treeIdCitizenUserFiling").val();
        var url = ctx + "system/dept/selectDeptTree/" + deptId;
        var options = {
            title: '选择部门',
            width: "380",
            url: url,
            callBack: doSubmitCitizenUserFiling
        };
        $.modal.openOptions(options);
    }
    function doSubmitCitizenUserFiling(index, layero) {
        var body = $.modal.getChildFrame(index);
        $("#treeIdCitizenUserFiling").val(body.find('#treeId').val());
        $("#treeNameCitizenUserFiling").val(body.find('#treeName').val());
        $.modal.close(index);
    }
    function exportExcelCitizenUserFiling() {
        table.set('bootstrap-table-citizenUserFiling');
        $.table.exportExcel('formIdCitizenUserFiling');
    }
    function resetCitizenUserFiling() {
        table.set('bootstrap-table-citizenUserFiling');
        $('#treeIdCitizenUserFiling').val('')
        $.form.reset('formIdCitizenUserFiling');
    }
    /*营销人员新市民建档排名相关处理结束*/

    /*营销人员农户拜访次数排名相关处理开始*/
    function searchPeasantUserVisits() {
        table.set('bootstrap-table-peasantUserVisits');
        $.table.search('formIdPeasantUserVisits');
    }

    /* 选择机构树 */
    function selectPeasantDeptTreeUserVisits() {
        var treeIdPeasantUserVisits = $("#treeIdPeasantUserVisits").val();
        var deptId = $.common.isEmpty(treeIdPeasantUserVisits) ? "100" : $("#treeIdPeasantUserVisits").val();
        var url = ctx + "system/dept/selectDeptTree/" + deptId;
        var options = {
            title: '选择部门',
            width: "380",
            url: url,
            callBack: doSubmitPeasantUserVisits
        };
        $.modal.openOptions(options);
    }
    function doSubmitPeasantUserVisits(index, layero) {
        var body = $.modal.getChildFrame(index);
        $("#treeIdPeasantUserVisits").val(body.find('#treeId').val());
        $("#treeNamePeasantUserVisits").val(body.find('#treeName').val());
        $.modal.close(index);
    }
    function exportExcelPeasantUserVisits() {
        table.set('bootstrap-table-peasantUserVisits');
        $.table.exportExcel('formIdPeasantUserVisits');
    }
    function resetPeasantUserVisits() {
        table.set('bootstrap-table-peasantUserVisits');
        $('#treeIdPeasantUserVisits').val('')
        $.form.reset('formIdPeasantUserVisits');
    }
    /*营销人员农户拜访次数排名相关处理结束*/

    /*营销人员新市民拜访次数排名相关处理开始*/
    function searchCitizenUserVisits() {
        table.set('bootstrap-table-citizenUserVisits');
        $.table.search('formIdCitizenUserVisits');
    }

    /* 选择机构树 */
    function selectCitizenDeptTreeUserVisits() {
        var treeIdCitizenUserVisits = $("#treeIdCitizenUserVisits").val();
        var deptId = $.common.isEmpty(treeIdCitizenUserVisits) ? "100" : $("#treeIdCitizenUserVisits").val();
        var url = ctx + "system/dept/selectDeptTree/" + deptId;
        var options = {
            title: '选择部门',
            width: "380",
            url: url,
            callBack: doSubmitCitizenUserVisits
        };
        $.modal.openOptions(options);
    }
    function doSubmitCitizenUserVisits(index, layero) {
        var body = $.modal.getChildFrame(index);
        $("#treeIdCitizenUserVisits").val(body.find('#treeId').val());
        $("#treeNameCitizenUserVisits").val(body.find('#treeName').val());
        $.modal.close(index);
    }
    function exportExcelCitizenUserVisits() {
        table.set('bootstrap-table-citizenUserVisits');
        $.table.exportExcel('formIdCitizenUserVisits');
    }
    function resetCitizenUserVisits() {
        table.set('bootstrap-table-citizenUserVisits');
        $('#treeIdCitizenUserVisits').val('')
        $.form.reset('formIdCitizenUserVisits');
    }
    /*营销人员新市民拜访次数排名相关处理结束*/

    /*营销人员农户超时拜访次数排名相关处理开始*/
    function searchPeasantUserDoTask() {
        table.set('bootstrap-table-peasantUserDoTask');
        $.table.search('formIdPeasantUserDoTask');
    }

    /* 选择机构树 */
    function selectPeasantDeptTreeUserDoTask() {
        var treeIdPeasantUserDoTask = $("#treeIdPeasantUserDoTask").val();
        var deptId = $.common.isEmpty(treeIdPeasantUserDoTask) ? "100" : $("#treeIdPeasantUserDoTask").val();
        var url = ctx + "system/dept/selectDeptTree/" + deptId;
        var options = {
            title: '选择部门',
            width: "380",
            url: url,
            callBack: doSubmitPeasantUserDoTask
        };
        $.modal.openOptions(options);
    }
    function doSubmitPeasantUserDoTask(index, layero) {
        var body = $.modal.getChildFrame(index);
        $("#treeIdPeasantUserDoTask").val(body.find('#treeId').val());
        $("#treeNamePeasantUserDoTask").val(body.find('#treeName').val());
        $.modal.close(index);
    }
    function exportExcelPeasantUserDoTask() {
        table.set('bootstrap-table-peasantUserDoTask');
        $.table.exportExcel('formIdPeasantUserDoTask');
    }
    function resetPeasantUserDoTask() {
        table.set('bootstrap-table-peasantUserDoTask');
        $('#treeIdPeasantUserDoTask').val('')
        $.form.reset('formIdPeasantUserDoTask');
    }
    /*营销人员农户超时拜访次数排名相关处理结束*/

    /*营销人员新市民超时拜访次数排名相关处理开始*/
    function searchCitizenUserDoTask() {
        table.set('bootstrap-table-citizenUserDoTask');
        $.table.search('formIdCitizenUserDoTask');
    }

    /* 选择机构树 */
    function selectCitizenDeptTreeUserDoTask() {
        var treeIdCitizenUserDoTask = $("#treeIdCitizenUserDoTask").val();
        var deptId = $.common.isEmpty(treeIdCitizenUserDoTask) ? "100" : $("#treeIdCitizenUserDoTask").val();
        var url = ctx + "system/dept/selectDeptTree/" + deptId;
        var options = {
            title: '选择部门',
            width: "380",
            url: url,
            callBack: doSubmitCitizenUserDoTask
        };
        $.modal.openOptions(options);
    }
    function doSubmitCitizenUserDoTask(index, layero) {
        var body = $.modal.getChildFrame(index);
        $("#treeIdCitizenUserDoTask").val(body.find('#treeId').val());
        $("#treeNameCitizenUserDoTask").val(body.find('#treeName').val());
        $.modal.close(index);
    }
    function exportExcelCitizenUserDoTask() {
        table.set('bootstrap-table-citizenUserDoTask');
        $.table.exportExcel('formIdCitizenUserDoTask');
    }
    function resetCitizenUserDoTask() {
        table.set('bootstrap-table-citizenUserDoTask');
        $('#treeIdCitizenUserDoTask').val('')
        $.form.reset('formIdCitizenUserDoTask');
    }
    /*营销人员新市民超时拜访次数排名相关处理结束*/

    /*营销人员农户超时拜访次数排名相关处理开始*/
    function searchPeasantUserUndoTask() {
        table.set('bootstrap-table-peasantUserUndoTask');
        $.table.search('formIdPeasantUserUndoTask');
    }

    /* 选择机构树 */
    function selectPeasantDeptTreeUserUndoTask() {
        var treeIdPeasantUserUndoTask = $("#treeIdPeasantUserUndoTask").val();
        var deptId = $.common.isEmpty(treeIdPeasantUserUndoTask) ? "100" : $("#treeIdPeasantUserUndoTask").val();
        var url = ctx + "system/dept/selectDeptTree/" + deptId;
        var options = {
            title: '选择部门',
            width: "380",
            url: url,
            callBack: doSubmitPeasantUserUndoTask
        };
        $.modal.openOptions(options);
    }
    function doSubmitPeasantUserUndoTask(index, layero) {
        var body = $.modal.getChildFrame(index);
        $("#treeIdPeasantUserUndoTask").val(body.find('#treeId').val());
        $("#treeNamePeasantUserUndoTask").val(body.find('#treeName').val());
        $.modal.close(index);
    }
    function exportExcelPeasantUserUndoTask() {
        table.set('bootstrap-table-peasantUserUndoTask');
        $.table.exportExcel('formIdPeasantUserUndoTask');
    }
    function resetPeasantUserUndoTask() {
        table.set('bootstrap-table-peasantUserUndoTask');
        $('#treeIdPeasantUserUndoTask').val('')
        $.form.reset('formIdPeasantUserUndoTask');
    }
    /*营销人员农户超时拜访次数排名相关处理结束*/

    /*营销人员新市民超时拜访次数排名相关处理开始*/
    function searchCitizenUserUndoTask() {
        table.set('bootstrap-table-userCitizenUndoTask');
        $.table.search('formIdCitizenUserUndoTask');
    }

    /* 选择机构树 */
    function selectCitizenDeptTreeUserUndoTask() {
        var treeIdCitizenUserUndoTask = $("#treeIdCitizenUserUndoTask").val();
        var deptId = $.common.isEmpty(treeIdCitizenUserUndoTask) ? "100" : $("#treeIdCitizenUserUndoTask").val();
        var url = ctx + "system/dept/selectDeptTree/" + deptId;
        var options = {
            title: '选择部门',
            width: "380",
            url: url,
            callBack: doSubmitCitizenUserUndoTask
        };
        $.modal.openOptions(options);
    }
    function doSubmitCitizenUserUndoTask(index, layero) {
        var body = $.modal.getChildFrame(index);
        $("#treeIdCitizenUserUndoTask").val(body.find('#treeId').val());
        $("#treeNameCitizenUserUndoTask").val(body.find('#treeName').val());
        $.modal.close(index);
    }
    function exportExcelCitizenUserUndoTask() {
        table.set('bootstrap-table-citizenUserUndoTask');
        $.table.exportExcel('formIdCitizenUserUndoTask');
    }
    function resetCitizenUserUndoTask() {
        table.set('bootstrap-table-citizenUserUndoTask');
        $('#treeIdCitizenUserUndoTask').val('')
        $.form.reset('formIdCitizenUserUndoTask');
    }
    /*营销人员超时拜访次数排名相关处理结束*/

</script>
</body>
</html>